import { createStore } from "vuex";

const modules = {};
const files = require.context("./modules", false, /\.js$/);
files.keys().forEach((key) => {
  modules[key.replace(/(\.\/|\.js)/g, "")] = files(key).default;
});

export default createStore({
  state: {},
  getters: {},
  mutations: {},
  actions: {},
  modules,
});
